//
//  Extension+UIImageVIew.swift
//  XJWeiBO
//
//  Created by 452608533 on 16/7/22.
//  Copyright © 2016年 452608533. All rights reserved.
//

import UIKit
import SDWebImage
extension UIImageView{
  //实例化imageView的快捷方式
    
    convenience init(imgName: String){
        self.init(image:UIImage(named: imgName))
    }
    func xj_setImage(urlString: String?, placeHolderImgName: String) {
        
        self.sd_setImageWithURL(NSURL(string: urlString ?? ""), placeholderImage: UIImage(named: placeHolderImgName))
    }
}
